import Vue from 'vue';
import 'element-ui/lib/theme-chalk/index.css';
Vue.prototype.$ELEMENT = { size: 'medium' };
import {
    Dialog,
    Button,
    Input,
    Select,
    Option,
    Link,
    Table,
    TableColumn,
    DatePicker,
    TimeSelect,
    TimePicker,
    Form,
    FormItem,
    Radio,
    RadioGroup,
    RadioButton,
    Checkbox,
    CheckboxButton,
    CheckboxGroup,
    Switch,
    Image,
    Transfer,
    Popover,
    Pagination,
    Message,
    MessageBox,
    Loading,
    Menu,
    Submenu,
    MenuItem,
    PageHeader,
    Tree,
    TabPane,
    Tabs,
    Upload,
    Timeline,
    Tooltip,
    TimelineItem,
    InputNumber
} from 'element-ui';

Vue.use(Dialog);
Vue.use(Button);
Vue.use(Input);
Vue.use(Select);
Vue.use(Option);
Vue.use(Link);
Vue.use(Tooltip);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(DatePicker);
Vue.use(TimeSelect);
Vue.use(TimePicker);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(RadioButton);
Vue.use(Checkbox);
Vue.use(Image);
Vue.use(CheckboxButton);
Vue.use(CheckboxGroup);
Vue.use(Switch);
Vue.use(Transfer);
Vue.use(Popover);
Vue.use(Pagination);
Vue.use(Switch);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Checkbox);
Vue.use(Menu);
Vue.use(Submenu);
Vue.use(MenuItem);
Vue.use(PageHeader);
Vue.use(Tree);
Vue.use(TabPane);
Vue.use(Tabs);
Vue.use(Upload);
Vue.use(Timeline);
Vue.use(TimelineItem);
Vue.use(InputNumber);
Vue.use(Loading.directive);

Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$message = Message;
Vue.prototype.$confirm = MessageBox.confirm;
